﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RSHB.Frontend.UI;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Portal.Frontend.UI.ViewModels;

namespace RSHB.Frontend.UI.ViewModels
{
    public abstract class UserEditViewModel : SharedRSHBViewModel
    {
        public int UserID { get; set; }
        [DisplayName("Имя")]
        [Required]
        public string UserFirstName { get; set; }

        [DisplayName("Отчество")]
        [Required]
        public string UserMiddleName { get; set; }

        [DisplayName("Фамилия")]
        [Required]
        public string UserLastName { get; set; }

        [DisplayName("Дата рождения")]
        [Required]
        public DateTime Birthday { get; set; }

        [DisplayName("Серия паспорта")]
        [Required]
        public string PassportSeries { get; set; }

        [DisplayName("Номер паспорта")]
        [Required]
        public string PassportNum { get; set; }

        [DisplayName("Кем выдан")]
        [Required]
        public string PassportIssuerName { get; set; }

        [DisplayName("Дата выдачи")]
        [Required]
        public DateTime PassportIssueDate { get; set; }

        [DisplayName("Код подразделения")]
        [Required]
        public string PassportIssuerCode { get; set; }

        [DisplayName("Адрес регистрации")]
        [Required]
        public string RegisterAddress { get; set; }

        [DisplayName("Адрес фактического проживания")]
        [Required]
        public string ActualAddress { get; set; }
    }
}